package cn.mianxZY2;

public class AnimalText {
    public static void main(String[] args) {
        Animal rabbit = new Rabbit();
        ((Rabbit) rabbit).eat();
        rabbit.sleep();



        Animal tiger =new Tiger();
        ((Tiger) tiger).eat();
        tiger.sleep();
    }
}
